home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dgebal.z / dgebal
Encoding:
Text File  |  2002-10-03  |  5.5 KB  |  199 lines

  1.  
  2.  
  3.  
  4. DDDDGGGGEEEEBBBBAAAALLLL((((3333SSSS))))                                                          DDDDGGGGEEEEBBBBAAAALLLL((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DGEBAL - balance a general real matrix A
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      SUBROUTINE DGEBAL( JOB, N, A, LDA, ILO, IHI, SCALE, INFO )
  13.  
  14.          CHARACTER      JOB
  15.  
  16.          INTEGER        IHI, ILO, INFO, LDA, N
  17.  
  18.          DOUBLE         PRECISION A( LDA, * ), SCALE( * )
  19.  
  20. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  21.      These routines are part of the SCSL Scientific Library and can be loaded
  22.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  23.      directs the linker to use the multi-processor version of the library.
  24.  
  25.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  26.      4 bytes (32 bits). Another version of SCSL is available in which integers
  27.      are 8 bytes (64 bits).  This version allows the user access to larger
  28.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  29.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  30.      only one of the two versions; 4-byte integer and 8-byte integer library
  31.      calls cannot be mixed.
  32.  
  33. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  34.      DGEBAL balances a general real matrix A. This involves, first, permuting
  35.      A by a similarity transformation to isolate eigenvalues in the first 1 to
  36.      ILO-1 and last IHI+1 to N elements on the diagonal; and second, applying
  37.      a diagonal similarity transformation to rows and columns ILO to IHI to
  38.      make the rows and columns as close in norm as possible.  Both steps are
  39.      optional.
  40.  
  41.      Balancing may reduce the 1-norm of the matrix, and improve the accuracy
  42.      of the computed eigenvalues and/or eigenvectors.
  43.  
  44.  
  45. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  46.      JOB     (input) CHARACTER*1
  47.              Specifies the operations to be performed on A:
  48.              = 'N':  none:  simply set ILO = 1, IHI = N, SCALE(I) = 1.0 for i
  49.              = 1,...,N; = 'P':  permute only;
  50.              = 'S':  scale only;
  51.              = 'B':  both permute and scale.
  52.  
  53.      N       (input) INTEGER
  54.              The order of the matrix A.  N >= 0.
  55.  
  56.      A       (input/output) DOUBLE PRECISION array, dimension (LDA,N)
  57.              On entry, the input matrix A.  On exit,  A is overwritten by the
  58.              balanced matrix.  If JOB = 'N', A is not referenced.  See Further
  59.              Details.  LDA     (input) INTEGER The leading dimension of the
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDGGGGEEEEBBBBAAAALLLL((((3333SSSS))))                                                          DDDDGGGGEEEEBBBBAAAALLLL((((3333SSSS))))
  71.  
  72.  
  73.  
  74.              array A.  LDA >= max(1,N).
  75.  
  76.      ILO     (output) INTEGER
  77.              IHI     (output) INTEGER ILO and IHI are set to integers such
  78.              that on exit A(i,j) = 0 if i > j and j = 1,...,ILO-1 or I =
  79.              IHI+1,...,N.  If JOB = 'N' or 'S', ILO = 1 and IHI = N.
  80.  
  81.      SCALE   (output) DOUBLE PRECISION array, dimension (N)
  82.              Details of the permutations and scaling factors applied to A.  If
  83.              P(j) is the index of the row and column interchanged with row and
  84.              column j and D(j) is the scaling factor applied to row and column
  85.              j, then SCALE(j) = P(j)    for j = 1,...,ILO-1 = D(j)    for j =
  86.              ILO,...,IHI = P(j)    for j = IHI+1,...,N.  The order in which
  87.              the interchanges are made is N to IHI+1, then 1 to ILO-1.
  88.  
  89.      INFO    (output) INTEGER
  90.              = 0:  successful exit.
  91.              < 0:  if INFO = -i, the i-th argument had an illegal value.
  92.  
  93. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  94.      The permutations consist of row and column interchanges which put the
  95.      matrix in the form
  96.  
  97.                 ( T1   X   Y  )
  98.         P A P = (  0   B   Z  )
  99.                 (  0   0   T2 )
  100.  
  101.      where T1 and T2 are upper triangular matrices whose eigenvalues lie along
  102.      the diagonal.  The column indices ILO and IHI mark the starting and
  103.      ending columns of the submatrix B. Balancing consists of applying a
  104.      diagonal similarity transformation inv(D) * B * D to make the 1-norms of
  105.      each row of B and its corresponding column nearly equal.  The output
  106.      matrix is
  107.  
  108.         ( T1     X*D          Y    )
  109.         (  0  inv(D)*B*D  inv(D)*Z ).
  110.         (  0      0           T2   )
  111.  
  112.      Information about the permutations P and the diagonal matrix D is
  113.      returned in the vector SCALE.
  114.  
  115.      This subroutine is based on the EISPACK routine BALANC.
  116.  
  117.      Modified by Tzu-Yi Chen, Computer Science Division, University of
  118.        California at Berkeley, USA
  119.  
  120.  
  121. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  122.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DDDDGGGGEEEEBBBBAAAALLLL((((3333SSSS))))                                                          DDDDGGGGEEEEBBBBAAAALLLL((((3333SSSS))))
  137.  
  138.  
  139.  
  140.      This man page is available only online.
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.